package com.common.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("用户中心Vo")
public class UserCodeVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    private Long id;

    @NotNull(message = "用户id不能为空")
    @Min(1)
    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("用户积分") 
    private Integer portrait;

    @ApiModelProperty("成交单数")  
    private Integer orderCount;

    @ApiModelProperty("创建人")   
    @NotBlank(message = "创建人不能为空")
    private String created;

    @ApiModelProperty("创建时间")   
    private LocalDateTime createdDate;

    @ApiModelProperty("更新人")    
    private String update;

    @ApiModelProperty("更新时间")    
    private LocalDateTime updateDate;

}